package utils

import "time"

func GetToday() string {
	date := time.Now()
	return date.Format("2006/01/02")
}

func GetYesterday() string {
	date := time.Now()
	date = date.AddDate(0, 0, -1)
	return date.Format("2006/01/02")
}

func GetTomorrow() string {
	date := time.Now()
	date = date.AddDate(0, 0, 1)
	return date.Format("2006/01/02")
}

func GetAllDay() Date {
	return Date{GetToday(),
		GetYesterday(),
		GetTomorrow()}
}

type Date struct {
	Today     string
	Yesterday string
	Tomorrow  string
}
